package com.yqg.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * department 实体类
 *
 * @author zxf
 * @since 2025-09-16
 */
@Getter
@Setter
@ApiModel(value = "Department对象", description = "部门")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("单位ID")
    private Long unitId;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("父组织id")
    private Long pid;

    @ApiModelProperty("是否删除")
    private String isDelete;

    /**
     * 单位名称
     */
    @TableField(exist = false)
    private String unitName;
}
